# from tkinter import *
# from tkinter import messagebox
#
# class Application(Frame):
#     def __init__(self,master = None):
#         super().__init__(master)
#         self.master=master
#         self.pack()
#         self.creatweight()
#
#     def creatweight(self):
#         self.label01 = Label(
#             self,text='user_name',width=12,
#         height=1,borderwidth=1,relief='solid'
#                              )
#         self.label01.pack()
#         #StringVar 变量
#         name1 = StringVar()
#         self.entry01=Entry(
#             self,textvariable=name1
#         )
#         self.entry01.pack()
#
#         self.label02 = Label(
#             self,text='password',relief="solid",borderwidth=1,width=12
#         )
#         self.label02.pack()
#
#         password01=StringVar()
#         self.entry02  = Entry(
#             self,textvariable=password01,show='*'
#         )
#         self.entry02.pack()
#
#         self.bin01 = Button(self, text='go on')
#         self.bin01.pack(side = 'left')
#         self.bin01['command'] = self.log_in
#
#         self.bin02  =Button(self,text = 'Exit',command=app.destroy)
#         self.bin02.pack(side = 'right')
#
#     def log_in(self):
#         name = self.entry01.get()
#         key = self.entry02.get()
#         if name =='name' and key =='123456':
#             messagebox.showinfo('Welcome','cheer')
#         else:
#             messagebox.showinfo('Failure','try again')
# if __name__ == '__main__':
#     app = Tk()
#     app.geometry('500x450+700+350')
#     app.title='sign up'
#     app = Application(master = app)
#     app.mainloop()

with open('history.txt','r',encoding='utf8') as f :
    print(f.read())
    print('-------------------------------------------')
    # f.seek(0)
    # print(f.readlines())



